package com.zboin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zboin.domain.ArticleType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @author zhboom
 * @date 2025/5/10 11:19
 */
@Mapper
public interface ArticleTypeMapper extends BaseMapper<ArticleType> {

    @Update("update article_type set count = count + 1 where author = #{username} and name = #{type}")
    int incrCount(String type, String username);
}
